var xy
/**
 * XiaoYi。。。 js正则 工具包
 * \b\w+\b(?=["`']?\s*(?:,)$|\s*(?:^from)|(?=["`']?\s*(?:from)$))
 * \b\w+\b(?=["`']?\s*(?:from))
 * (?<=select).*(?:['"`]\s*(?=from))
 * (?<=as\s)\b\w+\b|\b\w+\b(?=['"`],)|(\b\w+\b),$
 * (?<=select).*(?:['"`]?:(\s*)|(\b\w+\b\s*)(?=from))
 * 逗号前
 *(\b\w+\b(?=(?:,)$))
 */
(function ($) {
    xy = {
        //获取完整sql select 属性名;
        // regex_sql_select_property_val: /\b\w+\b(?=["`']?\s*(?:,)$|\s*(?:^from))/img,
        //每个参数占用一行，
        // regex_sql_select_property_val: /\w+(?=['"`]?\s*(?:,)$)|\w+(?=\nfrom)|\w+(?=['"]\n)/img,
        regex_sql_select_property_val: /\w+(?=['"`]?\s*(?:,)$)|\w+(?=\nfrom)|\w+(?=['"`][\n\s]+from)/img,

        //验证 sql 查询from 表名
        //验证邮箱
        //分隔select 到from
        regex_sql_spil_select_to_from_val:/(?<=select\s).*\b\w+\b['"`]\s+(?=["`']?\s*(?:from))/imgs,
        //手机号验证
        regex_from_phone: /^1(3([1-35-9]\d|4[1-8])|4[14-9]\d|5([0-25689]\d|7[1-79])|66\d|7[2-35-8]\d|8[2-9]\d|9[89]\d)\d{7}$/img

    }
})(jQuery);




























